﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.Framework.Enums;

namespace YouTravel.DomainModels
{
    /// <summary>
    /// 扣款信息
    /// </summary>
    public class Debit : EntityBase
    {
        /// <summary>
        /// 扣款类型Id
        /// </summary>
        public int TypeId { get; set; }
        /// <summary>
        /// 签约专线
        /// </summary>
        public int SpecialId { get; set; }
        /// <summary>
        /// 专线
        /// </summary>
        public virtual Special Special { get; set; }
        /// <summary>
        /// 扣款类型
        /// </summary>
        public virtual Deduction Type { get; set; }
        /// <summary>
        /// 扣款金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 扣款人Id
        /// </summary>
        public int DebitorId { get; set; }
        /// <summary>
        /// 扣款人
        /// </summary>
        public User Debitor { get; set; }
        /// <summary>
        /// 扣款人姓名
        /// </summary>
        public string DebitorName { get; set; }
        /// <summary>
        /// 扣款时间
        /// </summary>
        public DateTime Time { get; set; }
        /// <summary>
        /// 付款信息ID
        /// </summary>
        public int? PaymentId { get; set; }
        /// <summary>
        /// 付款信息
        /// </summary>
        public virtual Payment Payment { get; set; }
        /// <summary>
        /// 保险信息ID
        /// </summary>
        public int? InsuranceId { get; set; }
        /// <summary>
        /// 保险信息
        /// </summary>
        public virtual Insurance Insurance { get; set; }
    }
}
